package cn.lysj.framework.coupon.vo;

import lombok.Data;

import javax.persistence.Column;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author ZhangWenJian
 * @data 2019/1/16--10:09
 * @description
 */
@Data
public class BirthdayCouponToStoreVo {
    private String birthdayCouponConfigId; //生日优惠券设置Id
    private String couponId;          //优惠券Id

    //优惠券块信息
    private String couponName;
    @Column(columnDefinition = "decimal(10,2)")
    private BigDecimal fullReductionMoney;  //满减金额
    @Column(columnDefinition = "decimal(10,2)")
    private BigDecimal discountMoney; //优惠金额
    private Integer shareType;        //份额类型 1.有限制 2.无限制
    private Integer share;            //份额
    private Integer deadlineType;     //期限类型 1.商户指定优惠券开始时间 2.领取后计算开始结束时间
    private Date useBeginDate;        //期限开始时间
    private Date useEndDate;          //期限结束时间
    private Integer validPeriod;      //有效期限

    public BirthdayCouponToStoreVo() {
    }



    public BirthdayCouponToStoreVo(String birthdayCouponConfigId, String couponId, String couponName, BigDecimal fullReductionMoney, BigDecimal discountMoney, Integer shareType, Integer share, Integer deadlineType, Date useBeginDate, Date useEndDate, Integer validPeriod) {
        this.birthdayCouponConfigId = birthdayCouponConfigId;
        this.couponId = couponId;
        this.couponName = couponName;
        this.fullReductionMoney = fullReductionMoney;
        this.discountMoney = discountMoney;
        this.shareType = shareType;
        this.share = share;
        this.deadlineType = deadlineType;
        this.useBeginDate = useBeginDate;
        this.useEndDate = useEndDate;
        this.validPeriod = validPeriod;
    }
}
